package com.atguigu.gulimail.order.web.feign;

import com.atguigu.gulimail.order.web.vo.OrderItemVo;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient("gulimail-cart")
@Component
public interface CartFeign {

    @GetMapping("currentUserCartItems")
    @ResponseBody
    List<OrderItemVo> getUserCartItems();


}
